@bridge-ds/core 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/exploration-resume.d.ts +18 -0
- package/dist/explorations.d.ts +21 -0
- package/dist/github-client.d.ts +7 -2
- package/dist/index.js +268 -256
- package/dist/index.js.map +1 -1
- package/dist/node/index.js +29 -29
- package/dist/node/index.js.map +1 -1
- package/dist/{repo-source-DmOqTTAZ.js → repo-source-vRf_Jfbz.js} +2035 -2022
- package/dist/repo-source-vRf_Jfbz.js.map +1 -0
- package/dist/review-gate.d.ts +13 -2
- package/package.json +1 -1
- package/dist/repo-source-DmOqTTAZ.js.map +0 -1
|
@@ -13,6 +13,24 @@ export declare function explorationStage(x: {
|
|
|
13
13
|
archived?: boolean | null | undefined;
|
|
14
14
|
files: readonly string[] | null | undefined;
|
|
15
15
|
}): 'not-started' | 'exploring' | 'handed';
|
|
16
|
+
/** The words of a running exploration on its page, and on every row and card that lists it. */
|
|
17
|
+
export declare const EXPLORATION_STAGE_LABEL: {
|
|
18
|
+
readonly 'not-started': "Not started";
|
|
19
|
+
readonly exploring: "Exploring";
|
|
20
|
+
readonly archived: "Archived";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The one status tag of an exploration wherever it is listed (Changes rows, Home cards, tools): the words its page
|
|
24
|
+
* shows. Running: "Not started" while the branch only carries Bridge notes, else "Exploring". Archived: "Archived".
|
|
25
|
+
* After done exploring: where it stands ("Waiting for code", "Being built", "Shipped"). Never a check or a technical
|
|
26
|
+
* blocker: an exploration's guard check fails by design. `files` undefined (not read yet): null for a running one, so
|
|
27
|
+
* a row never guesses; null (the read failed): "Exploring", as on the page.
|
|
28
|
+
*/
|
|
29
|
+
export declare function explorationStateLabel(x: {
|
|
30
|
+
status: ExplorationStatus;
|
|
31
|
+
archived?: boolean | null | undefined;
|
|
32
|
+
files?: readonly string[] | null | undefined;
|
|
33
|
+
}): string | null;
|
|
16
34
|
export interface ContinueRef {
|
|
17
35
|
number: number;
|
|
18
36
|
name: string;
|
package/dist/explorations.d.ts
CHANGED
|
@@ -176,6 +176,27 @@ export declare function isHandedOff(p: Pick<ExplorationPullLike, 'labels' | 'bod
|
|
|
176
176
|
* done exploring is the older promotion: promoted, open or merged.
|
|
177
177
|
*/
|
|
178
178
|
export declare function explorationStatus(p: ExplorationPullLike): ExplorationStatus;
|
|
179
|
+
/**
|
|
180
|
+
* The pull request is an exploration right now: open with the `exploration` label (archived ones keep it), or a running
|
|
181
|
+
* exploration whose label is missing (isUnlabeledExploration: an open draft on an `explore/*` branch or with the
|
|
182
|
+
* Bridge block). Its guard check (EXPLORATION_CHECK) fails by design then, so every check summary leaves that check out
|
|
183
|
+
* (review-gate summarizeCi `exploration`): Studio, the MCP server and the CLI never read it as a problem. Any other
|
|
184
|
+
* pull request with that check failing still counts it.
|
|
185
|
+
*/
|
|
186
|
+
export declare function isGuardedExploration(p: {
|
|
187
|
+
state?: string | undefined;
|
|
188
|
+
draft?: boolean | undefined;
|
|
189
|
+
labels?: readonly (string | {
|
|
190
|
+
name?: string;
|
|
191
|
+
})[] | null | undefined;
|
|
192
|
+
headRef?: string | null | undefined;
|
|
193
|
+
head?: {
|
|
194
|
+
ref?: string | null | undefined;
|
|
195
|
+
} | null | undefined;
|
|
196
|
+
body?: string | null | undefined;
|
|
197
|
+
}): boolean;
|
|
198
|
+
/** True for the guard check of an exploration (EXPLORATION_CHECK), by check run name or status context. */
|
|
199
|
+
export declare const isExplorationCheck: (name: string | null | undefined) => boolean;
|
|
179
200
|
/** True while the label is on: the pull request must not merge (the CI check fails, Studio blocks the merge). */
|
|
180
201
|
export declare const isActiveExploration: (labels: ExplorationPullLike["labels"]) => boolean;
|
|
181
202
|
/** True for an archived exploration: hidden from the default lists, reachable from the Archived filter. */
|
package/dist/github-client.d.ts
CHANGED
|
@@ -605,8 +605,13 @@ export declare class GitHubClient {
|
|
|
605
605
|
/** Every file path at a ref (branch, tag or sha), one API call. */
|
|
606
606
|
listFiles(ref: string): Promise<string[]>;
|
|
607
607
|
listPullRequests(state?: 'open' | 'closed' | 'all'): Promise<PullRequestSummary[]>;
|
|
608
|
-
/**
|
|
609
|
-
|
|
608
|
+
/**
|
|
609
|
+
* Commit statuses and check runs of a commit, folded into one state. `exploration`: the commit heads an exploration
|
|
610
|
+
* (explorations isGuardedExploration), so its guard check, failing by design, is left out (as review-gate summarizeCi).
|
|
611
|
+
*/
|
|
612
|
+
getChecks(sha: string, opts?: {
|
|
613
|
+
exploration?: boolean | undefined;
|
|
614
|
+
}): Promise<{
|
|
610
615
|
state: 'success' | 'failure' | 'pending' | 'none';
|
|
611
616
|
checks: {
|
|
612
617
|
name: string;
|